block: really disable runtime-pm for blk-mq
authorMing Lei <ming.lei@redhat.com>
Mon, 30 Jul 2018 12:02:19 +0000 (20:02 +0800)
committerBastian Blank <waldi@debian.org>
Mon, 13 Aug 2018 13:33:58 +0000 (14:33 +0100)
commit423132609e6aa5fd7ba6fca0c0ef173441fdc5e1
tree2f8acad3a03b6445ead89fddc4650d6a35cdb873
parent228d286a36fe22cb3a2575087e9f29eabc04937b
block: really disable runtime-pm for blk-mq

Runtime PM isn't ready for blk-mq yet, and commit 765e40b675a9 ("block:
disable runtime-pm for blk-mq") tried to disable it. Unfortunately,
it can't take effect in that way since user space still can switch
it on via 'echo auto > /sys/block/sdN/device/power/control'.

This patch disables runtime-pm for blk-mq really by pm_runtime_disable()
and fixes all kinds of PM related kernel crash.

Cc: Christoph Hellwig <hch@lst.de>
Cc: Patrick Steinhardt <ps@pks.im>
Cc: Bart Van Assche <Bart.VanAssche@wdc.com>
Cc: Tomas Janousek <tomi@nomi.cz>
Cc: Przemek Socha <soprwa@gmail.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: <stable@vger.kernel.org>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name block-really-disable-runtime-pm-for-blk-mq.patch
block/blk-core.c